package com.example.fw;

import org.openqa.selenium.By;

public class NavigationHelper extends HelperWithWebDriverBase {

	public NavigationHelper(AppManager manager) {
		super(manager);
	}

	public void goToContactCreation() {
		click(By.linkText("add new"));
	}

	public void returnToContactListPage() {
		click(By.linkText("home page"));
	}

	protected void returnToGroupListPage() {
		click(By.linkText("group page"));
	}

	public void goToGroupListPage() {
		// not current Url
		click(By.linkText("groups"));
	}

	public void openMainPage() {
		// not main page
		openUrl("http://localhost/addressbookv4.1.4/");
	}

	protected void goToEditContactWindow() {
		click(By.cssSelector("img[alt=\"Edit\"]"));
	}

}
